From d8971872ddc2316c519d5b21e862b92db298f87a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 9 Feb 2024 23:50:28 -0800
Subject: feat(badges): add 1 second delay between error fetches

---
 src/routes/user/[user]/badges/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index 0f06a8d1..fc9f5d2c 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -97,7 +97,7 @@
 	});
 
 	const fallback = (event: Event, image: string | undefined) =>
-		((event.target as HTMLImageElement).src = image || '');
+		setTimeout(() => ((event.target as HTMLImageElement).src = image || ''), 1000);
 
 	// const awcBadges = (awcResponse: string): AWCBadge[] => {
 	// 	return Array.from(
-- 
cgit v1.2.3

